//
//  SecondViewController.m
//  UI09_homework
//
//  Created by 洛洛大人 on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondViewController.h"
#import "SecondScrollView.h"
#import "PictureView.h"


@interface SecondViewController ()<UIScrollViewDelegate>


@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor yellowColor];
    
    self.title = @"第二页";
    
    [self creatPictureView];
   
}

-(void)creatPictureView{
    PictureView *picture = [[PictureView alloc]initWithFrame:CGRectMake(0, 0, 300, 400)];
    picture.center = self.view.center;
    [self.view addSubview:picture];
    [picture release];
    
   
     UIImage *image1 = [UIImage imageNamed:@"1.jpeg"];
     UIImage *image2 = [UIImage imageNamed:@"2.jpeg"];
     UIImage *image3 = [UIImage imageNamed:@"3.png"];
     UIImage *image4 = [UIImage imageNamed:@"4.jpeg"];
     UIImage *image5 = [UIImage imageNamed:@"5.jpeg"];
     UIImage *image6 = [UIImage imageNamed:@"6.jpeg"];
     UIImage *image7 = [UIImage imageNamed:@"7.jpeg"];

    
    picture.imageArray = @[image7,image1, image2, image3, image4, image5, image6, image7, image1];
    
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
